<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="text" placeholder="请输入想要请求的网站" id="input" />
<button type="button" id="btn">发送请求</button>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
    $("#btn").click(function () {
        $.get($("#input").val(),function (resp) {
            console.log(resp)
        })
    })
</script>
</body>
</html>